fix(ui): balance mobile header new-chat edge inset#940
Conversation
Raise edge-glass-header phone padding to 1rem to match mode-home content, widen the Answer mode pill viewport reserve, and lock left/right symmetry with a focused Playwright geometry check. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe change centralizes header edge padding in a CSS token, applies it across responsive header rules, and adds Playwright and CSS contract checks for mobile inset symmetry. The branch review ledger records the completed review and remaining headless-browser limitation. ChangesMobile header inset alignment
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested labels: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Replace the unlayered max-width 639px edge-glass-header 0px padding override with a matching 1rem inset so it cannot beat the layered rule and pin new-chat to the bezel. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Share --header-edge-pad between the layered edge-glass-header base and the unlayered phone media guard, and add a source contract so a 0px override cannot silently return. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Resolve globals.css token conflict by retaining both --header-edge-pad and the phone-dock reserve variables from #933. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Capture the merge-ready outcome, checks, and residual risks for the mobile new-chat edge spacing fix. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Keep the header-edge-pad fix current with origin/main after #937. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Point the CI body sync at this UI-only change so PR policy can validate the correct summary, verification, and governance attestations. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Match the exact Supabase target checklist string required by pr-policy. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Revert the mode-pill width nudge (still fits at 1rem phone pad) so the change set stays UI chrome only, and replace the stale PR_POLICY_BODY.md with the correct verify:ui evidence for CI body sync. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Accept main's deletion of the leftover policy body template now that the PR description has been synced and PR policy is green. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
A single elementFromPoint sample can miss while the mobile compare dock is still easing back into view on hosted CI. Poll until the CTA receives the hit. Phone header inset asymmetry is already fixed by #940. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Incorporate mobile header new-chat inset fix before Production UI re-run. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
A single elementFromPoint sample can miss while the mobile compare dock is still easing back into view on hosted CI. Poll until the CTA receives the hit. Phone header inset asymmetry is already fixed by #940. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
A single elementFromPoint sample can miss while the mobile compare dock is still easing back into view on hosted CI. Poll until the CTA receives the hit. Phone header inset asymmetry is already fixed by #940. Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Summary
.edge-glass-headerinset after an unlayered@media (max-width: 639px)rule had zeroed padding and beaten@layer components.--header-edge-pad: 1rem(aligned with mode-homepx-4), keep the unlayered phone guard on the same token, and widen the Answer mode pill reserve tocalc(100vw-12rem).max(0px, safe-area)header override.Verification
npm run verify:ui— 242/242 Chromium PR suite on the functional head before the docs/ledger closeouttests/ui-overlap.spec.ts— 14/14 including new left/right inset symmetry assertstests/ui-overlay-css-contract.test.ts— 5/5 including the header-edge-pad contract16px/16px(delta: 0)verify:pr-localunit stage blocked by the known container-onlypdf-extraction-budgetpython ENOENT artifact (also fails on clean main; hosted Unit coverage remains the authority)Risk and rollout
Clinical Governance Preflight
Clinical KB Database(sjrfecxgysukkwxsowpy)Notes
src/components/clinical-dashboard/...is classified clinical-risk by PR policy filename rules even though this change is header chrome only; governance items are confirmed unchanged.origin/mainincluding Safari dock reserve tokens (fix(ui): restore Safari edge-to-edge after hidden-composer regression #933) and ingestion-worker lease hardening (fix: harden ingestion worker leases and address review follow-ups #937).Summary by CodeRabbit